-module(beta).
-export([extends/0, class2/1, fact/2]).

extends() -> alpha.

class2(Self) ->
    io:format("beta ctor~n", []),
    object:super(Self, class1).

fact(Self, X) when X < 0 -> 'invalid number'.
